<?php
$this->pageTitle = 'View City';

$this->menu = array(
    array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('create')),  
    array('label' => Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url' => array('admin')),
);
?>

<h3><?php echo Yii::t('app', 'View') . ' ' . GxHtml::encode($model->label()); ?></h3>

<?php
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
        'city_name',
        array(
            'name' => 'country',
            'type' => 'raw',
            'value' => $model->country !== null ? GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->country)), array('skillCountry/view', 'id' => GxActiveRecord::extractPkValue($model->country, true))) : null,
        ),
        array(
            'name' => 'state',
            'type' => 'raw',
            'value' => $model->state !== null ? GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->state)), array('skillState/view', 'id' => GxActiveRecord::extractPkValue($model->state, true))) : null,
        ),
        array
            (
            'name' => 'status',
            'type' => 'image',
            'htmlOptions' => array('class' => 'gridmaxwidth', 'style' => 'width: 15px !important'),
            'value' => SkillConfig::status($model),
        ),
    ),
));
?>

